package com.example.teesystem.entity.vo.library;

import com.example.teesystem.common.valid.ValidErrorMessage;
import com.example.teesystem.common.valid.ValidId;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * @author pxr
 * @data 2022/4/26 14:28
 */
@Data
public class LibrarySelectVo {
    @NotNull(message = "courseId值不能为空")
    @ValidId(message = ValidErrorMessage.COURSE_ID_VALID_FAIL, ifCourseId = true)
    private Integer courseId;
    @NotNull(message = "message值不能为空")
    private Integer libraryType;

    @ValidId(minValue = 0, message = ValidErrorMessage.PAGE_CUR_VALID_FAIL)
    private Integer cur;

    /**
     * 每页个数
     */
    @ValidId(minValue = 0, message = ValidErrorMessage.PAGE_SIZE_VALID_FAIL)
    private Integer size;
}
